package net.neptech.model.workflow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.Data;


import java.util.Date;

/**
 * @Author Saya
 * @Date 2025/8/24 15:13
 * @Description TODO
 **/

@Data
@Entity
@Table(name = "workflow_main")
@TableName("workflow_main")
public class WorkflowMain {
    @TableField("id")
    @Id
    @TableId

    @GeneratedValue(strategy = GenerationType.UUID)
    private String id;

    /**
     * 表单名称
     */
    @TableField("name")
    private String name;

    /**
     * 图标配置
     */
    @TableField("logo")
    private String logo;


    /**
     * 分组ID
     */
    @TableField("group_id")
    private Long groupId;


    @TableField("sort")
    private Integer sort;


    /**
     * 范围描述显示
     */
    @TableField("range_show")
    private String rangeShow;

    /**
     * 唯一性id
     */
    @TableField("unique_id")
    private String uniqueId;
    /**
     * 逻辑删除字段
     */
    @TableField("deleted")
    @Column(name = "deleted")
    private Boolean deleted;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @Column(name = "update_time")
    private Date updateTime;
}
